# from langchain_core.tools import tool
#
# #2. 使用langchain 创建工具
# @tool
# # 1.函数
# def mult(a:int, b:int) -> int:
#     # 描述词
#     """Mutiply two numbers"""
#     return a * b
#
# # 函数名称
# print(mult.name)
# # 描述词
# print(mult.description)
# # 参数
# print(mult.args)

from langchain_community.tools.tavily_search import TavilySearchResults

search = TavilySearchResults(max_results=1)
print(search.invoke("今天成都天气多少度"))